package com.op.teachingliteapp.service;

import com.op.teachingliteapp.common.Common;
import com.op.teachingliteapp.util.SharedPreferencesUtils;

/**
 * 处理当前用户的数据
 */
public class UserService {

	/**
	 * 获取用户编号
	 */
	public static String getUserNumber() {
		return SharedPreferencesUtils.getPreference().getString(Common.Prefs.USER_NUMBER, null);
	}

	/**
	 * 获取用户密码
	 */
	public static String getUserPwd() {
		return SharedPreferencesUtils.getPreference().getString(Common.Prefs.USER_PWD, null);
	}

	/**
	 * 获取用户Id
	 */
	public static String getUserId() {
		return SharedPreferencesUtils.getPreference().getString(Common.Prefs.USER_ID, null);
	}

	/**
	 * 获取用户名
	 */
	public static String getUserName() {
		return SharedPreferencesUtils.getPreference().getString(Common.Prefs.USER_NAME, null);
	}

	/**
	 * 获取用户头像url
	 */
	public static String getUserImageUrl() {
		return SharedPreferencesUtils.getPreference().getString(Common.Prefs.USER_IMAGE_URL, null);
	}
	
}
